<?php
/**
 * Resolve.php
 *
 * @copyright   2023 thingsworld.com.cn - All Rights Reserved
 * @link        http://thingsworld.com.cn/
 * @author      stiffer.chen <chenl@thingsworld.com.cn>
 * @created     2023-06-16 16:54:39
 * @modified    2023-06-16 16:54:39
 *
 */

namespace App\Models\Suggest;

use App\Models\BaseModel;
use App\Models\Suggest\Resolve\User;

class Resolve extends BaseModel
{
    protected $table = 'suggest_resolve';
    public $timestamps = true;
    public const CREATED_AT = 'create_time';
    public const UPDATED_AT = 'update_time';
    protected $fillable = [
        'suggest_id',
        'category',
        'resolve_date',
        'status',
        'resolve',
        'reason',
        'scheme',
        'description'
    ];

    public function users()
    {
        return $this->hasMany(User::class, 'suggest_resolve_id');
    }
}